let a,b
a = 123
b = 456

function increase(a, b) {
  return [a+1, b+1]
}

[a, b] = increase(a, b)

console.log(a, b)